package Jogo;

import java.io.ObjectInputStream.GetField;

public class MainLeverageTest {
	
	public MainLeverageTest(){
		super();
	}
	
	
	public static void main (String[] Arguments){
		Board tabuleiro = new Board();
		Pieces p = new Pieces();
		
	ControlGame pecas = new ControlGame();


//	//test - istherescoringpegs 
//	if(pecas.isThereScoringP("red")){
//		System.out.println("ok");
//	}
//	else System.out.println("not ok");
	
	
//test - move pieces, getpiecesbyxy	
//	p = pecas.getPieceByXY(0, 0);
//	System.out.println("Nome: " + p.getName());
//	System.out.println("Cor: " + p.getColor());
//	System.out.println("X: " + p.getSpotX());
//	System.out.println("Y: " + p.getSpotY());
//	System.out.println("Peso: " + p.getWeight() + "\n");	
//	
//	p = pecas.getPieceByXY(1, 3);
//	System.out.println("Nome: " + p.getName());
//	System.out.println("Cor: " + p.getColor());
//	System.out.println("X: " + p.getSpotX());
//	System.out.println("Y: " + p.getSpotY());
//	System.out.println("Peso: " + p.getWeight() + "\n");
//	
//	p = pecas.getPieceByXY(5, 4);	
//	System.out.println("Nome: " + p.getName());
//	System.out.println("Cor: " + p.getColor());
//	System.out.println("X: " + p.getSpotX());
//	System.out.println("Y: " + p.getSpotY());
//	System.out.println("Peso: " + p.getWeight() + "\n");
//	
//	int b1 = pecas.getChosenPiece(1, 3);
//	int b2 = pecas.getChosenPiece(5, 4);
//	System.out.println("b1 =" + b1 + " e b2 = " + b2 + "antes de mover" + "\n");
//	pecas.movePiece(1, 3, 5, 4);
//	b1 = pecas.getChosenPiece(1, 3);
//	b2 = pecas.getChosenPiece(5, 4);
//	System.out.println("b1 =" + b1 + " e b2 = " + b2 + "depois de mover" + "\n");
//	
//	p = pecas.getPieceByXY(1, 3);
//	System.out.println("Nome: " + p.getName());
//	System.out.println("Cor: " + p.getColor());
//	System.out.println("X: " + p.getSpotX());
//	System.out.println("Y: " + p.getSpotY());
//	System.out.println("Peso: " + p.getWeight() + "\n");
//	
//	p = pecas.getPieceByXY(5, 4);	
//	System.out.println("Nome: " + p.getName());
//	System.out.println("Cor: " + p.getColor());
//	System.out.println("X: " + p.getSpotX());
//	System.out.println("Y: " + p.getSpotY());
//	System.out.println("Peso: " + p.getWeight() + "\n");
	
	
	
//	testing creating pieces, getpiecesbyindex - start game
	for (int i = 0; i < 48; i++) {
			p = pecas.getPieceByIndex(i);
			System.out.println("Nome: " + p.getName());
			System.out.println("Cor: " + p.getColor());
			System.out.println("X: " + p.getSpotX());
			System.out.println("Y: " + p.getSpotY());
			System.out.println("Peso: " + p.getWeight() + "\n");
		}
		
		//testing find correct zone
//		String zona;	
//		for (int i = 0; i < 14; i++) {
//			for (int j = 0; j < 9; j++) {
//				zona = tabuleiro.getZone(j, i);
//				System.out.println("col= " + i + " lin= " + j+ " => " +zona);	
//			}
//		}
		

		
	}
}
